//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.neurosky.thinkgear;

public class TargetHeartRate {
    private int a;
    private double b;
    private double c;

    public TargetHeartRate() {
    }

    public int[] getTargetHeartRate(int var1, String var2, String var3) {
        if(var2.equals("Male")) {
            this.a = 220 - var1;
        } else {
            if(!var2.equals("Female")) {
                return new int[]{-1, -1};
            }

            this.a = 226 - var1;
        }

        if(var3.equals("Light Exercise")) {
            this.b = 0.5D * (double)this.a;
            this.c = 0.6D * (double)this.a;
        } else if(var3.equals("Weight Loss")) {
            this.b = 0.6D * (double)this.a;
            this.c = 0.7D * (double)this.a;
        } else if(var3.equals("Aerobic")) {
            this.b = 0.7D * (double)this.a;
            this.c = 0.8D * (double)this.a;
        } else if(var3.equals("Conditioning")) {
            this.b = 0.8D * (double)this.a;
            this.c = 0.9D * (double)this.a;
        } else {
            if(!var3.equals("Athletic")) {
                return new int[]{-1, -1};
            }

            this.b = 0.9D * (double)this.a;
            this.c = 1.0D * (double)this.a;
        }

        return new int[]{(int)Math.floor(this.b + 0.5D), (int)Math.floor(this.c + 0.5D)};
    }
}
